package com.heima.review.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author HM
 * @since 2023-04-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "AdComment对象", description = "")
public class AdComment implements Serializable {


    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "文章id")
    private Long articleId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "0评论，1回复")
    private Integer type;

    @ApiModelProperty(value = "回复数")
    private Integer reply;

    @ApiModelProperty(value = "点赞数")
    private Integer likes;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "0未删除，1逻辑删除")
    private Integer isdelete;

    @ApiModelProperty(value = "评论id")
    private Long commentId;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;


}
